package com.ifonly.activerecord.helpers;

/**
 * @author <a href="mailto:ifonlymaster@163.com">ifonly</a>
 * @version 1.0 2015-12-06 20:47
 * @since JDK 1.6
 */
public class SqlFragment {

    private String columnsFragment;
    private String valuesFragment;
    private String wheresFragment;
    private Object[] params;

    public SqlFragment(String columnsFragment, String valuesFragment, Object[] params) {
        this.columnsFragment = columnsFragment;
        this.valuesFragment = valuesFragment;
        this.params = params;
    }

    public SqlFragment(String columnsFragment, String valuesFragment, String wheresFragment, Object[] params) {
        this.columnsFragment = columnsFragment;
        this.valuesFragment = valuesFragment;
        this.wheresFragment = wheresFragment;
        this.params = params;
    }

    public String getColumnsFragment() {
        return columnsFragment;
    }

    public void setColumnsFragment(String columnsFragment) {
        this.columnsFragment = columnsFragment;
    }

    public String getValuesFragment() {
        return valuesFragment;
    }

    public void setValuesFragment(String valuesFragment) {
        this.valuesFragment = valuesFragment;
    }

    public String getWheresFragment() {
        return wheresFragment;
    }

    public void setWheresFragment(String wheresFragment) {
        this.wheresFragment = wheresFragment;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

}
